class Student1{
    private  int score;
    private  String name;

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Student1() {
    }

    public Student1(int score, String name) {
        this.score = score;
        this.name = name;
    }
    public void Myprint(){
        System.out.println(getName()+"考了"+getScore());
    }
}
public class Test1 {
    public static void main(String[] args){
       Student1 s1 = new Student1();
       s1.setScore(100);
       s1.setName("王雅钊");
       s1.Myprint();
       Student1 s2 = new Student1(99,"王雅钊");
       s2.Myprint();
    }

}
